package com.gitee.dupe.file.service;

import com.gitee.dolt.boot.service.SuperService;
import com.gitee.dolt.core.base.Result;
import com.gitee.dupe.file.entity.Attachment;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LYH
 * @since 2020-10-11
 */
public interface IAttachmentService extends SuperService<Attachment> {


    Attachment upload(MultipartFile file);

    void download(HttpServletRequest request, HttpServletResponse response, List<Long> ids);

    void handlerDelete(List<Long> ids);
}
